from functional import seq

my_list = [{'name': 'lizikun', 'age': 23}, {'name': 'duanzhenkun', 'age': 24}, {'name': 'lilijun', 'age': 25}]

my_list.sort(key=lambda x: x['age'], reverse=True)
print(my_list)

if __name__ == '__main__':
    new_list = seq(my_list).sorted(key=lambda x: x['age'], reverse=True)

    print(new_list)
